package com.example.demo.common;

public class Constant {
    //定义4种token类型
    public static final String CLIENT_TYPE_IOS = "ios";
    public static final String CLIENT_TYPE_ANDROID = "android";
    public static final String CLIENT_TYPE_WECHAT= "wechat";
    public static final String CLIENT_TYPE_WEB= "web";

    //定义token在redis中存储key的前缀，key存储方式为前缀+uid
    public static final String TOKEN_KEY_PREFIX= "token:";
    public static final int TOKEN_EXPIRE_TIME = 1800;  //token超时时间，单位为秒

    public static final String STORAGE_LIMIT_SIZE = "storage_limit_size";
    public static final String STORAGE_MAX_WIDTH = "storage_max_width";
    public static final String  SEPARATOR_X = "x";     //图片裁剪尺寸分隔符，比如1028x760
    /**
     * 文件存储-缩略图目录
     */
    public static final String thumbnailPath = "/storage/thumbnails";
}
